package com.lu.controller;

import com.lu.service.MessageService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController

public class TestController {
    @Resource
    private MessageService messageService;

    @RequestMapping("test")
    public void test() {
        messageService.save1();
    }

    @RequestMapping("test2")
    public void test2() {
        messageService.save2();
    }
}
